1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */ 
28 
29 module derelict.purple.idle;
30 
31 import core.stdc.time;
32 
33 extern (C):
34 
35 alias _Anonymous_0 PurpleIdleUiOps;
36 
37 struct _Anonymous_0
38 {
39 	time_t function () get_time_idle;
40 	void function () _purple_reserved1;
41 	void function () _purple_reserved2;
42 	void function () _purple_reserved3;
43 	void function () _purple_reserved4;
44 }
45 
46 							
47 version(Derelict_Link_Static)
48 {
49     extern( C ) nothrow 
50     {
51 	    void purple_idle_touch();
52         void purple_idle_set(time_t time);
53         void purple_idle_set_ui_ops(PurpleIdleUiOps* ops);
54         PurpleIdleUiOps* purple_idle_get_ui_ops();
55         void purple_idle_init();
56         void purple_idle_uninit();
57     }
58 }
59 else
60 {
61     extern( C ) nothrow 
62     {
63 	    alias da_purple_idle_touch = void function();									
64         alias da_purple_idle_set = void function(time_t time);							
65         alias da_purple_idle_set_ui_ops = void function(PurpleIdleUiOps* ops);			
66         alias da_purple_idle_get_ui_ops = PurpleIdleUiOps* function();					
67         alias da_purple_idle_init = void function();									
68         alias da_purple_idle_uninit = void function();		
69     }
70 
71     __gshared
72     {
73 	    da_purple_idle_touch purple_idle_touch;
74 	    da_purple_idle_set purple_idle_set;
75 	    da_purple_idle_set_ui_ops purple_idle_set_ui_ops;
76 	    da_purple_idle_get_ui_ops purple_idle_get_ui_ops;
77 	    da_purple_idle_init purple_idle_init;
78 	    da_purple_idle_uninit purple_idle_uninit;	
79     }
80 }